package com.travelroute.controller;

import com.travelroute.entity.User;
import com.travelroute.service.IUserService;
import com.travelroute.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 华无夜
 * @since 2025-01-10
 */
@RestController
@RequestMapping("/api/users")
@Api(tags = "用户api接口")
public class UserController {

    @Autowired
    private IUserService userService;

    @ApiOperation("登录")
    @PostMapping("/login")
    public R<User> login(@RequestBody User user){
        return null;
    }
}
